package com.cloud.model;

import com.cloud.base.BaseEntity;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

/**
 * 公告类
 */
@Entity
@Table(name = "tb_affiche")
@EntityListeners(AuditingEntityListener.class)
public class Affiche extends BaseEntity {
    private String content;
    private Integer status;
    @ManyToOne
    @JoinColumn(name = "equipment_id")
    private Equipment equipment;
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public Integer getStatus() {
        return status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }
}
